Skip to content

Add pi-ai provider to support local LLMs and auth-based models#51

Open
ludovicc wants to merge 1 commit intoviperrcrypto:mainfrom
ludovicc:pi-ai-lmstudio-fixes
Open

Add pi-ai provider to support local LLMs and auth-based models#51
ludovicc wants to merge 1 commit intoviperrcrypto:mainfrom
ludovicc:pi-ai-lmstudio-fixes

Conversation

@ludovicc
Copy link

Summary

  • Adds pi-ai multi-provider support, including UI + persisted settings (provider/model/baseUrl/headers/compat).
  • Adds Settings test button (ping) and improves /api/settings/test behavior and UX feedback.
  • Enables LM Studio / OpenAI-compatible baseUrl usage without a real API key (injects dummy key for pi-ai/OpenAI SDK requirement).
  • Fixes Settings hydration mismatch (X OAuth callback URL).
  • Hardens enrich + categorize JSON extraction for fenced JSON/nested arrays and adds detailed logs.

Testing

  • Settings → pi-ai → Test config (ping)
  • Bookmark import pipeline: enrich + categorize stages with LM Studio baseUrl.

Added pi-ai multi-model provider support end-to-end (backend + UI), including Provider/Model/Base URL/Headers/Compat settings and env var overrides.
Implemented a pi-ai “Test config (ping)” button plus improved test endpoint behavior and UI feedback (toasts + inline success/fail status).
Enabled LM Studio / OpenAI-compatible Base URL usage without a real API key, including automatic dummy key injection to satisfy pi-ai’s API-key requirement.
@ludovicc ludovicc force-pushed the pi-ai-lmstudio-fixes branch from aacd4d0 to fd19ef4 Compare March 19, 2026 11:14
@ludovicc ludovicc changed the title pi-ai + LM Studio support (keyless baseUrl, test ping, robust parsing/logging) Add pi-ai provider to support local LLMs and auth-based models Mar 19, 2026
@ludovicc
Copy link
Author

To test, open the Settings page, you should see a new tab to configure a model with PI-AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant